package cn.com.api.service.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_products;

/**
 * 
 */
@Service
public interface T_productsServiceBase {

	//根据id查看
	public ApiT_products findT_productsById(Long id);
	
    //查看数据集
	public List<ApiT_products> findT_productss();
    
	//添加
 	public int insertT_products(ApiT_products t_products);
  	
	//修改
    public int updateT_products(ApiT_products t_products);
    
    //删除
    public int deleteT_products(Integer id);
    
    // Foreign keys revelant		
		
	//删除根据Goods_id
    public int T_productsDeleteByGoods_id(String goods_id);
	
    //获取根据Goods_id
    public List<ApiT_products> findT_productssByGoods_id(String goods_id);
    
    public void updateIsDeleteByProductId(String productId);

		

	//region Indexs revelant
    
    
 
}


